#ifndef _COM_H
#define _COM_H

/*
 * function in this file is common with special gdi(eg: miniGui)
 */
#define GET_RECT_WIDTH(rect)    ((rect).right - (rect).left)
#define GET_RECT_HEIGHT(rect)   ((rect).bottom - (rect).top)
#define NEW_MH_CTRL_STATE()     ((MH_CTRL_STATE*)calloc(1, sizeof(MH_CTRL_STATE)))


void DrawComBkGnd(HWND hWnd);
void Draw3DRect(HDC hDC, int x0, int y0, int x1, int y1);
void Draw3DBox(HDC hDC, int x0, int y0, int x1, int y1);
void DrawBitmapBkGnd(HWND hWnd, RECT *prect, BITMAP *pbitmap);
void DrawCross(HDC hdc, RECT *rect);

void LoadMemBmp();
void UnloadMemBmp();

#endif
